//
//  UFOLQCSkillCollectionView.m
//  unrivalledForUniverse
//
//  Created by dllo on 1/21/16.
//  Copyright © 2016 dllo. All rights reserved.
//

#import "UFOLQCSkillCollectionView.h"

@implementation UFOLQCSkillCollectionView

- (void)dealloc
{
    [_image release];
    [_label release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}


- (void)createSubViews
{
    self.image = [UIImageView new];
    self.image.backgroundColor = [UIColor redColor];
    [self addSubview:self.image];
    
    self.label = [UILabel new];
    self.label.textAlignment = NSTextAlignmentCenter;
    self.label.textColor = [UIColor whiteColor];
    self.label.backgroundColor = [UIColor colorWithRed:0.000 green:0.000 blue:0.502 alpha:0.880];
    [self addSubview:self.label];
    
    [self.image mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.top.right.equalTo(self.contentView).offset(0);
        make.bottom.equalTo(self.contentView).offset(-25);
        
        
    }];
    
    [self.label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.bottom.right.equalTo(self.contentView).offset(0);
        make.top.equalTo(self.image.mas_bottom).offset(0);
        
    }];
    
}
@end
